import Vue from 'vue'
import axios from 'axios';
axios.interceptors.response.use(function(res){
    return res.data;
})
Vue.prototype.$axios = axios;

// 定义全局电影名字过滤器
Vue.filter('short',function(title){
    if(title.indexOf('/')>-1){
       return title.split('/')[0]
    }else{
        return title;
    }
})